 $(document).ready(function(){    
	 //初始化信息	 
	 $.ajax( {    
		    url:'http://localhost:8080/deyu/home_reload.action',// 跳转到 action    
		    data:{    
		               
		    },    
		    type:'post',    
		    cache:false,    
		    dataType:'json',    
		    success:function(data) {
		    	var student = data;
		    	alert(student.userName);
		    	if(student!=null){
		           $(".userName").html(student.userName);  
		    	}else{
		    		window.location.href="http://localhost:8080/deyu/student_loginUI.action";  //跳转到登录页
		    	}
		     },    
		     error : function() {    
		          // view("异常！");    
		          alert("亲，服务出问题了！");    
		     }    
		   });

 });